Class TranslatorServiceFactory

Summary

Fully Qualified Name: Laminas\I18n\Translator\TranslatorServiceFactory
Implements: FactoryInterface

Description

Translator.

Methods

Name Description Defined By
__invoke() Create a Translator instance. TranslatorServiceFactory
createService() laminas-servicemanager v2 factory for creating Translator instance. TranslatorServiceFactory

Method Details

__invoke()

Create a Translator instance.

Parameter Name Type Description
$container \ContainerInterface
$requestedName string
$options null|array

Returns: \Translator

createService()

laminas-servicemanager v2 factory for creating Translator instance.

Proxies to __invoke().

Parameter Name Type Description
$serviceLocator \ServiceLocatorInterface

Returns: \Translator

Top